/*
	WeaponCLH.h
	(c)2004 Palestar Inc, Richard Lyle
*/

#ifndef WEAPONCLH_H
#define WEAPONCLH_H

#include "Game/Constants.h"
#include "Game/GadgetBeamWeapon.h"



//----------------------------------------------------------------------------

class WeaponCLH : public GadgetBeamWeapon
{
public:
	DECLARE_WIDGET_CLASS();

	// NounGadget interface
	Type type() const
	{
		return WEAPON_CLOSE;
	}
	int maxDamage() const
	{
		return (6000 + (level() * 175))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int addValue() const
	{
		return 18000;
	}
	int buildTechnology() const
	{
		return 65;
	}
	int	buildCost() const
	{
		return 120;
	}
	dword buildFlags() const
	{
		return NounPlanet::FLAG_METALS;
	}
	int buildTime() const
	{
		return 405;
	}
	// GadgetWeapon interface
	int energyCost() const
	{
		return (3240 + (level() * 430))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_ENERGY );
	}
	int energyCharge() const
	{
		return (18 + ceil (level() * 0.8))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_COOLDOWN );
	}
	int damage() const
	{
		return (112 + (level() * 12))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int damageRandom() const
	{
		return (45 + (level() * 6))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int damageFalloff() const
	{
		return 112 + (level() * 6);
	}
	dword damageType() const
	{
		return DAMAGE_ENERGY;
	}
	int duration() const
	{
		return 100 + (level() * 5);
	}
	float length() const
	{
		return (200.0f + (level() * 10.0f))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_RANGE );
	}
	int repairRate() const
	{
		return 3;
	}
};



#endif

//----------------------------------------------------------------------------
//EOF
